/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import slcu.model.Inscripcion;

import java.util.List;

/**
 * The persistence utility for the Inscripcion service. This utility wraps {@link InscripcionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see InscripcionPersistence
 * @see InscripcionPersistenceImpl
 * @generated
 */
public class InscripcionUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(Inscripcion inscripcion) {
		getPersistence().clearCache(inscripcion);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<Inscripcion> findWithDynamicQuery(
		DynamicQuery dynamicQuery) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<Inscripcion> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<Inscripcion> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static Inscripcion update(Inscripcion inscripcion, boolean merge)
		throws SystemException {
		return getPersistence().update(inscripcion, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static Inscripcion update(Inscripcion inscripcion, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(inscripcion, merge, serviceContext);
	}

	/**
	* Caches the Inscripcion in the entity cache if it is enabled.
	*
	* @param inscripcion the Inscripcion
	*/
	public static void cacheResult(slcu.model.Inscripcion inscripcion) {
		getPersistence().cacheResult(inscripcion);
	}

	/**
	* Caches the Inscripcions in the entity cache if it is enabled.
	*
	* @param inscripcions the Inscripcions
	*/
	public static void cacheResult(
		java.util.List<slcu.model.Inscripcion> inscripcions) {
		getPersistence().cacheResult(inscripcions);
	}

	/**
	* Creates a new Inscripcion with the primary key. Does not add the Inscripcion to the database.
	*
	* @param inscripcionId the primary key for the new Inscripcion
	* @return the new Inscripcion
	*/
	public static slcu.model.Inscripcion create(long inscripcionId) {
		return getPersistence().create(inscripcionId);
	}

	/**
	* Removes the Inscripcion with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion that was removed
	* @throws slcu.NoSuchInscripcionException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion remove(long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence().remove(inscripcionId);
	}

	public static slcu.model.Inscripcion updateImpl(
		slcu.model.Inscripcion inscripcion, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(inscripcion, merge);
	}

	/**
	* Returns the Inscripcion with the primary key or throws a {@link slcu.NoSuchInscripcionException} if it could not be found.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion
	* @throws slcu.NoSuchInscripcionException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByPrimaryKey(long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence().findByPrimaryKey(inscripcionId);
	}

	/**
	* Returns the Inscripcion with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param inscripcionId the primary key of the Inscripcion
	* @return the Inscripcion, or <code>null</code> if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByPrimaryKey(long inscripcionId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(inscripcionId);
	}

	/**
	* Returns all the Inscripcions where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByDeportistaId(
		long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByDeportistaId(deportistaId);
	}

	/**
	* Returns a range of all the Inscripcions where deportistaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param deportistaId the deportista ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByDeportistaId(
		long deportistaId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByDeportistaId(deportistaId, start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where deportistaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param deportistaId the deportista ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByDeportistaId(
		long deportistaId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByDeportistaId(deportistaId, start, end,
			orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByDeportistaId_First(
		long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByDeportistaId_First(deportistaId, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByDeportistaId_First(
		long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByDeportistaId_First(deportistaId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByDeportistaId_Last(
		long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByDeportistaId_Last(deportistaId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByDeportistaId_Last(
		long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByDeportistaId_Last(deportistaId, orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where deportistaId = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion[] findByDeportistaId_PrevAndNext(
		long inscripcionId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByDeportistaId_PrevAndNext(inscripcionId, deportistaId,
			orderByComparator);
	}

	/**
	* Returns all the Inscripcions where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoId(
		long equipoId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEquipoId(equipoId);
	}

	/**
	* Returns a range of all the Inscripcions where equipoId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param equipoId the equipo ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoId(
		long equipoId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEquipoId(equipoId, start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where equipoId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param equipoId the equipo ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoId(
		long equipoId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByEquipoId(equipoId, start, end, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByEquipoId_First(long equipoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence().findByEquipoId_First(equipoId, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByEquipoId_First(long equipoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByEquipoId_First(equipoId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByEquipoId_Last(long equipoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence().findByEquipoId_Last(equipoId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByEquipoId_Last(long equipoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByEquipoId_Last(equipoId, orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where equipoId = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param equipoId the equipo ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion[] findByEquipoId_PrevAndNext(
		long inscripcionId, long equipoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByEquipoId_PrevAndNext(inscripcionId, equipoId,
			orderByComparator);
	}

	/**
	* Returns all the Inscripcions where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @return the matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoIdAndDeportistaId(
		long equipoId, long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId(equipoId, deportistaId);
	}

	/**
	* Returns a range of all the Inscripcions where equipoId = &#63; and deportistaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoIdAndDeportistaId(
		long equipoId, long deportistaId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId(equipoId, deportistaId,
			start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions where equipoId = &#63; and deportistaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findByEquipoIdAndDeportistaId(
		long equipoId, long deportistaId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId(equipoId, deportistaId,
			start, end, orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByEquipoIdAndDeportistaId_First(
		long equipoId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId_First(equipoId, deportistaId,
			orderByComparator);
	}

	/**
	* Returns the first Inscripcion in the ordered set where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByEquipoIdAndDeportistaId_First(
		long equipoId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByEquipoIdAndDeportistaId_First(equipoId,
			deportistaId, orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion
	* @throws slcu.NoSuchInscripcionException if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion findByEquipoIdAndDeportistaId_Last(
		long equipoId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId_Last(equipoId, deportistaId,
			orderByComparator);
	}

	/**
	* Returns the last Inscripcion in the ordered set where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Inscripcion, or <code>null</code> if a matching Inscripcion could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion fetchByEquipoIdAndDeportistaId_Last(
		long equipoId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByEquipoIdAndDeportistaId_Last(equipoId, deportistaId,
			orderByComparator);
	}

	/**
	* Returns the Inscripcions before and after the current Inscripcion in the ordered set where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param inscripcionId the primary key of the current Inscripcion
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Inscripcion
	* @throws slcu.NoSuchInscripcionException if a Inscripcion with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static slcu.model.Inscripcion[] findByEquipoIdAndDeportistaId_PrevAndNext(
		long inscripcionId, long equipoId, long deportistaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchInscripcionException {
		return getPersistence()
				   .findByEquipoIdAndDeportistaId_PrevAndNext(inscripcionId,
			equipoId, deportistaId, orderByComparator);
	}

	/**
	* Returns all the Inscripcions.
	*
	* @return the Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the Inscripcions.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @return the range of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the Inscripcions.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Inscripcions
	* @param end the upper bound of the range of Inscripcions (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<slcu.model.Inscripcion> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the Inscripcions where deportistaId = &#63; from the database.
	*
	* @param deportistaId the deportista ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByDeportistaId(long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByDeportistaId(deportistaId);
	}

	/**
	* Removes all the Inscripcions where equipoId = &#63; from the database.
	*
	* @param equipoId the equipo ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByEquipoId(long equipoId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByEquipoId(equipoId);
	}

	/**
	* Removes all the Inscripcions where equipoId = &#63; and deportistaId = &#63; from the database.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByEquipoIdAndDeportistaId(long equipoId,
		long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByEquipoIdAndDeportistaId(equipoId, deportistaId);
	}

	/**
	* Removes all the Inscripcions from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of Inscripcions where deportistaId = &#63;.
	*
	* @param deportistaId the deportista ID
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByDeportistaId(long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByDeportistaId(deportistaId);
	}

	/**
	* Returns the number of Inscripcions where equipoId = &#63;.
	*
	* @param equipoId the equipo ID
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByEquipoId(long equipoId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByEquipoId(equipoId);
	}

	/**
	* Returns the number of Inscripcions where equipoId = &#63; and deportistaId = &#63;.
	*
	* @param equipoId the equipo ID
	* @param deportistaId the deportista ID
	* @return the number of matching Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countByEquipoIdAndDeportistaId(long equipoId,
		long deportistaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .countByEquipoIdAndDeportistaId(equipoId, deportistaId);
	}

	/**
	* Returns the number of Inscripcions.
	*
	* @return the number of Inscripcions
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	public static InscripcionPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (InscripcionPersistence)PortletBeanLocatorUtil.locate(slcu.service.ClpSerializer.getServletContextName(),
					InscripcionPersistence.class.getName());

			ReferenceRegistry.registerReference(InscripcionUtil.class,
				"_persistence");
		}

		return _persistence;
	}

	/**
	 * @deprecated
	 */
	public void setPersistence(InscripcionPersistence persistence) {
	}

	private static InscripcionPersistence _persistence;
}